import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

import Vant from 'vant';
import { NavBar } from 'vant';
import { Toast } from 'vant';
import { Loading } from 'vant';
import { PullRefresh } from 'vant';
import { Grid, GridItem } from 'vant';
import { Cell, CellGroup } from 'vant';
import { TreeSelect } from 'vant';
import { Divider } from 'vant';
import { Field } from 'vant';
import { Cascader } from 'vant';
import { Dialog } from 'vant';
import { Uploader } from 'vant';
import { Badge } from 'vant';
import { Tab, Tabs } from 'vant';
import { Collapse, CollapseItem } from 'vant';
import { Col, Row } from 'vant';
Vue.prototype.$toast= Toast;

import F2 from '@antv/f2/lib/index-all'
Vue.prototype.$F2= F2;

import moment from 'moment'; 
moment.locale('zh-cn'); 
Vue.prototype.$moment = moment;

import 'vant/lib/index.css'
import './styles/index.less'
import 'normalize.css'


//自动设置rem基准值
import 'amfe-flexible'


Vue.use(Vant);
Vue.use(NavBar);
Vue.use(Loading);
Vue.use(PullRefresh);
Vue.use(Grid);
Vue.use(GridItem);
Vue.use(Cell);
Vue.use(CellGroup);
Vue.use(TreeSelect);
Vue.use(Divider);
Vue.use(Field);
Vue.use(Cascader);
Vue.use(Dialog);
Vue.use(Uploader);
Vue.use(Badge);
Vue.use(Tab);
Vue.use(Tabs);
Vue.use(Toast);
Vue.use(Collapse);
Vue.use(CollapseItem);
Vue.use(Col);
Vue.use(Row);
Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
